/*
 * Decompiled with CFR 0.150.
 */
package com.gys.common.data;

import java.beans.ConstructorProperties;

public class KeyValue {
    private String name;
    private String value;

    public String getName() {
        return this.name;
    }

    public String getValue() {
        return this.value;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof KeyValue)) {
            return false;
        }
        KeyValue other = (KeyValue)o;
        if (!other.canEqual(this)) {
            return false;
        }
        String this$name = this.getName();
        String other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) {
            return false;
        }
        String this$value = this.getValue();
        String other$value = other.getValue();
        return !(this$value == null ? other$value != null : !this$value.equals(other$value));
    }

    protected boolean canEqual(Object other) {
        return other instanceof KeyValue;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        String $name = this.getName();
        result = result * 59 + ($name == null ? 43 : $name.hashCode());
        String $value = this.getValue();
        result = result * 59 + ($value == null ? 43 : $value.hashCode());
        return result;
    }

    public String toString() {
        return "KeyValue(name=" + this.getName() + ", value=" + this.getValue() + ")";
    }

    @ConstructorProperties(value={"name", "value"})
    public KeyValue(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public KeyValue() {
    }
}

